package com.zifeng.study.service.impl;

import com.zifeng.study.bean.User;
import com.zifeng.study.service.UserService;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * @author 吴梓锋
 * @version 1.0.0
 * @date 2022/06/05 16:42:39
 * @description 用户service实现类
 */
@DubboService(version = "${demo.service.version}")
public class UserServiceImpl implements UserService {
    @Override
    public User getUserById(long id) {
        // 测试为了方便直接写死
        User user = new User(1, "zifeng", 24, "12345678910", "广州市天河区");
        System.out.println("当前用户id为：【】" + id + "请求用户信息！");

        return user;
    }

}
